import { IDetailState, IHomeState } from '@/typings';
import { createStore } from 'vuex';

import home from './home';
import detail from './detail';

//固定写法
export interface IGlobalState {
  home: IHomeState;
  detail: IDetailState;
}

//合并模块
export default createStore<IGlobalState>({
  modules: {
    home,
    detail
  }
});
